/*
 * Element.cpp
 *
 *  Created on: 27-12-2010
 *      Author: Przemek
 */
#include "world/Element.hpp"

Element::Element() :
	toDelete(false)
{

}

Element::~Element()
{

}

void Element::setPosition(const Vector& position)
{
	bounds.setPosition(position);
}

const Vector& Element::getPosition() const
{
	return bounds.getPosition();
}

void Element::setBounds(const geometry::Rectangle& bounds)
{
	this->bounds = bounds;
}

const geometry::Rectangle Element::getBounds() const
{
	return bounds;
}

const Dimension& Element::getSize() const
{
	return bounds.getSize();
}

void Element::setToDelete(bool toDelete)
{
	this->toDelete = toDelete;
}

bool Element::isToDelete() const
{
	return toDelete;
}
